/**
 * 
 */
package org.mad.code.transformation;

import java.io.FileInputStream;

import org.mad.code.util.Messages;
import org.mad.code.util.PropertiesManager;

import MobileApplicationDeveloper.model.View;

/**
 * @author E420611
 *
 */
public class ViewTransformation {
	
	

	public static StringBuffer getTemplateAndroid(View v){
		StringBuffer st = new StringBuffer();
		String classType = Messages.ViewTransformation_view;
		
		
		
//		FileInputStream fis = new FileInputStream(Messages.PropertiesManager_PropertyPath);
//		
		
		
		//st.append(
//		st.append(PropertiesManager.getProperty(ViewTransformation.getJavaKey(classType, "package")) + "\n"); //$NON-NLS-1$ //$NON-NLS-2$
//		st.append(PropertiesManager.getProperty(ViewTransformation.getJavaKey(classType, "modifiers")) + " class " + v.getViewName());		 //$NON-NLS-1$ //$NON-NLS-2$
//		
//		String propertyExtends = PropertiesManager.getProperty(ViewTransformation.getJavaKey(classType, "extends")); //$NON-NLS-1$
//		propertyExtends = (propertyExtends.equals(""))? propertyExtends: " extends " + propertyExtends; //$NON-NLS-1$ //$NON-NLS-2$
//		st.append(propertyExtends+ "\n"); //$NON-NLS-1$
//		
//		String propertyImplements = PropertiesManager.getProperty(ViewTransformation.getJavaKey(classType, Messages.ViewTransformation_9));
//		propertyImplements = (propertyImplements.equals(""))? propertyImplements: " implements " + propertyImplements;		 //$NON-NLS-1$ //$NON-NLS-2$
//		st.append(propertyImplements+ "\n"); //$NON-NLS-1$
//		
//		st.append("{ \n" + PropertiesManager.getProperty(ViewTransformation.getJavaKey(classType, "body"))+ "\n}"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
//	
		return st;		
	}
	
	public static String getJavaKey(String classType, String part){
		return "java." + classType + "." + part; //$NON-NLS-1$ //$NON-NLS-2$
	}
	
	
	
	
}



